package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the stage database table.
 * 
 */
@Entity
@NamedQuery(name="Stage.findAll", query="SELECT s FROM Stage s")
public class Stage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int idStage;

	@Temporal(TemporalType.DATE)
	private Date dateDebut;

	@Temporal(TemporalType.DATE)
	private Date dateFin;

	private String entreprise;

	private int note;

	private String sujet;

	//bi-directional many-to-one association to Etudiant
	@ManyToOne
	@JoinColumn(name="idEtudiant")
	private Etudiant etudiant;

	//bi-directional many-to-one association to Formationannee
	@ManyToOne
	@JoinColumn(name="idFormationAnnee")
	private Formationannee formationannee;

	//bi-directional many-to-one association to Tuteur
	@ManyToOne
	@JoinColumn(name="idTuteur")
	private Tuteur tuteur;

	public Stage() {
	}

	public int getIdStage() {
		return this.idStage;
	}

	public void setIdStage(int idStage) {
		this.idStage = idStage;
	}

	public Date getDateDebut() {
		return this.dateDebut;
	}

	public void setDateDebut(Date dateDebut) {
		this.dateDebut = dateDebut;
	}

	public Date getDateFin() {
		return this.dateFin;
	}

	public void setDateFin(Date dateFin) {
		this.dateFin = dateFin;
	}

	public String getEntreprise() {
		return this.entreprise;
	}

	public void setEntreprise(String entreprise) {
		this.entreprise = entreprise;
	}

	public int getNote() {
		return this.note;
	}

	public void setNote(int note) {
		this.note = note;
	}

	public String getSujet() {
		return this.sujet;
	}

	public void setSujet(String sujet) {
		this.sujet = sujet;
	}

	public Etudiant getEtudiant() {
		return this.etudiant;
	}

	public void setEtudiant(Etudiant etudiant) {
		this.etudiant = etudiant;
	}

	public Formationannee getFormationannee() {
		return this.formationannee;
	}

	public void setFormationannee(Formationannee formationannee) {
		this.formationannee = formationannee;
	}

	public Tuteur getTuteur() {
		return this.tuteur;
	}

	public void setTuteur(Tuteur tuteur) {
		this.tuteur = tuteur;
	}

}